package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.Facilities;
import cn.topevery.garden.entity.query.FacilitiesQuery;
import cn.topevery.garden.entity.vo.FacilitiesPageVO;
import cn.topevery.garden.entity.vo.FacilitiesPoiVO;
import cn.topevery.garden.entity.vo.oneMap.CountVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;
import java.util.Map;

/**
 * 描述 The interface Facilities dao.
 *
 * @author code -generate
 * @created 2021 -08-27 09:22:09
 * @date 2021 -08-06
 */
public interface FacilitiesDao extends BaseDao<Facilities> {


    /**
     * 获取列表
     *
     * @param query the query
     * @return the data pager
     * @author wenzhao.lin
     * @created 2021 -08-27 09:22:09 List page data pager.
     */
    DataPager<FacilitiesPageVO> listPage(FacilitiesQuery query);


    /**
     * 描述 获取统计数量.
     *
     * @param name     the name
     * @param extentId the extent id
     * @return the list
     * @author wenzhao.lin
     * @created 2021 -08-25 09:26:38 Get count list.
     */
    Map getCount(String name, Integer extentId, String typeId);

    /**
     * 描述 通过类型获取列表
     *
     * @param name     the name
     * @param extentId the extent id
     * @param type     the type
     * @return the person list by type
     * @author wenzhao.lin
     * @created 2021 -08-25 09:26:38
     */
    List<Facilities> getFacilitiesListByType(String name, Integer extentId, String type);

    List<FacilitiesPoiVO> getFacilitiesPoiListByType(FacilitiesQuery query);



    /**
     * 描述 获取类型列表
     *
     * @param name     the name
     * @param extentId the extent id
     * @return the person type list
     * @author wenzhao.lin
     * @created 2021 -08-27 09:22:09
     */
    List<Facilities> getTypeList(String name, Integer extentId);

    Facilities getByCodeAndType(String code, Integer type);

    List<CountVO> getTypeCount();

    List<Map<String, Object>> facilitiesCount();
}
